home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / sound / sndplaydoublebuffer / _headers / mungebuffer.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.5 KB  |  52 lines

  1. /*
  2.     File:        MungeBuffer.h
  3.  
  4.     Contains:    Headers for routines demonstrating how to manipulate buffers containing WAVE sounds.
  5.  
  6.     Written by: Mark Cookson    
  7.  
  8.     Copyright:    Copyright © 1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/31/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #ifndef __MUNGEBUFFER__
  25. #define __MUNGEBUFFER__
  26.  
  27. #include <Types.h>
  28.  
  29. #ifndef __DEFINES__
  30. #include "Defines.h"
  31. #endif
  32.  
  33. /* Comment out the next line to use C functions instead of assembly functions. */
  34. #define ASM
  35.  
  36. #ifdef ASM
  37.  
  38. asm    void    Endian16BitBuffer            (Ptr buf,
  39.                                         unsigned long count);
  40. #else
  41.  
  42.     void    Endian16BitBuffer            (Ptr buf,
  43.                                         unsigned long count);
  44.  
  45. #endif
  46.  
  47. void ReverseMono8BitBuffer (const Ptr buf, unsigned long count);
  48. void ReverseStereo8BitBuffer (const Ptr buf, unsigned long count);
  49. void ReverseMono16BitBuffer (const Ptr buf, unsigned long count);
  50. void ReverseStereo16BitBuffer (const Ptr buf, unsigned long count);
  51.  
  52. #endif